<?php

// @formatter:off
/**
 * @file cron.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * Cron and cron tools launcher.
 *
 * $Id: cron.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/cron/cron.php $
 */
// @formatter:on

(php_sapi_name() != "cli") && die("This script runs only on comand line");
//
// Enable Garbage Collector
gc_enable();

define("__CRON__", true);
ini_set("memory_limit", -1);

require_once dirname(__DIR__)."/config/config.php";
require_once "{$wcPaths["includes-directory"]}/dynamic.conf.php";

$wcCron->run();

@unlink($wcPaths["install-tmps"]["cron"]);
//
// Disable Garbage Collector
gc_disable();
